import service from '@/utils/request'

const GoodsRelationApi = {
  listGoodsRelation:function(data){
    return service.get('goodsRelation/page', {params:data})
  },
  addGoodsRelation:function(data){
      return service.post('goodsRelation', data)
  },
  editGoodsRelation:function(data){
      return service.put('goodsRelation', data)
  },
  deleteGoodsRelation:function(data){
      return service.put('goodsRelation/delete', data)
  },
  getGoodsRelationInfo(data){
      return service.get('goodsRelation', {params:data})
  },
  listByParam:function(data){
    return service.get('goodsRelation/listByParam', {params:data})
  },
  bandRelation:function(data){
    return service.put('goodsRelation/bandRelation', data)
  },

}

export default GoodsRelationApi
